    #include "company.h"
    #include <string>

    int company_t::count_team_members(const std::string & team_name) const
    {
        return std::count_if(m_employees.cbegin(), m_employees.cend(), [this, &team_name] (const person_t& employee)
        {
            return team_name_for(employee) == team_name;
        });
    }